package com.aaa.mrcai.mapper;

import com.aaa.mrcai.pojo.entity.*;
import com.aaa.mrcai.pojo.vo.GoodsVO;
import com.aaa.mrcai.query.GoodsQuery;

import java.util.List;

/**
 * @Author:Li-Yan-Chun
 * @Date:2021/12/6 11:36
 */
public interface GoodsMapper {
    List<Goods> queryGoods(GoodsQuery goodsQuery);
    Long queryGoodsTotalCount(GoodsQuery goodsQuery);
    List<Category> listCategory();
    List<Spec> listSpec();
    List<Brand> listBrand();
    List<Grade> listGrade();
    List<Deposit> listDeposit();
    int delGoods(int id);
    int uploadGoods(GoodsVO goodsVO);
    int addOneGoods(GoodsVO goodsVO);
    Long isGoodsExist(GoodsVO goodsVO);
    GoodsVO getOneGoods(int id);
    Long isGoodsIdExist(GoodsVO goodsVO);
    int updateOneGoods(GoodsVO goodsVO);
    int updateImg(GoodsVO goodsVO);
}
